import Mock from "mockjs";
export const getUserInfo = () => {
  const template = {
    "str|2-4": "Jerry",
    "name|5": "lison"
  };
  return Mock.mock(template);
};

export const login = options => {
  const tpl = {
    "code": 0,
    "data": JSON.parse(options.body),
    "msg": "success"
  }
  return Mock.mock(tpl)
}
